//
//  AppHud.m
//  storeapp
//
//  Created by huangyi on 13-1-31.
//  Copyright (c) 2013年 ios. All rights reserved.
//

#import "HudObj.h"

@interface HudObj ()

@end

@implementation HudObj

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
        self.dim=YES;
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(NSUInteger)supportedInterfaceOrientations{
    UIViewController *root=[HudMgr shared].rootStage.rootViewController;
    return [root supportedInterfaceOrientations];
}

-(void)buildHud{
    NSCAssert(0, @"virtual function, build hud");
}
-(void)show{
    [[HudMgr shared] showHud:self];
}
-(void)hide{
    [[HudMgr shared] hideHud];
}

@end
